home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat5 / hostname.z / hostname
Encoding:
Text File  |  2002-10-03  |  3.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. hhhhoooossssttttnnnnaaaammmmeeee((((5555))))                                                        hhhhoooossssttttnnnnaaaammmmeeee((((5555))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      hostname - hostname resolution description
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      Hostnames are domains, where a domain is a hierarchical, dot-separated
  13.      list of subdomains; for example, the machine monet, in the Berkeley
  14.      subdomain of the EDU subdomain of the Internet would be represented as
  15.  
  16.      _m_o_n_e_t._B_e_r_k_e_l_e_y._E_D_U
  17.  
  18.      (with no trailing dot).
  19.  
  20.      Hostnames are often used with network client and server programs, which
  21.      must generally translate the name to an address for use.  (This function
  22.      is generally performed by the library routine _g_e_t_h_o_s_t_b_y_n_a_m_e(3N).)
  23.      Hostnames are resolved by the Internet name resolver in the following
  24.      fashion.
  25.  
  26.      If the name consists of a single component, i.e., contains no dot, and if
  27.      the environment variable ``HOSTALIASES'' is set to the name of a file,
  28.      that file is searched for a string matching the input hostname.  The file
  29.      should consist of lines made up of two white-space separated strings, the
  30.      first of which is the hostname alias, and the second of which is the
  31.      complete hostname to be substituted for that alias.  For example, to
  32.      refer to the host ``matisse.painters.org'' with the alias ``henri'', use
  33.  
  34.      _h_e_n_r_i     _m_a_t_i_s_s_e._p_a_i_n_t_e_r_s._o_r_g
  35.  
  36.      If a case-insensitive match is found between the hostname to be resolved
  37.      and the first field of a line in the file, the substituted name is looked
  38.      up with no further processing.
  39.  
  40.      If the input name ends with a trailing dot, the trailing dot is removed,
  41.      and the remaining name is looked up with no further processing.
  42.  
  43.      If the input name does not end with a trailing dot, it is looked up by
  44.      searching through a list of domains until a match is found.  The default
  45.      search list includes first the local domain, then its parent domains with
  46.      at least 2 name components (longest first).
  47.  
  48.      For example, in the domain CS.Berkeley.EDU, the name _l_i_t_h_i_u_m._C_C_h_e_m will
  49.      be checked first as
  50.  
  51.      _l_i_t_h_i_u_m._C_C_h_e_m._C_S._B_e_r_k_e_l_e_y._E_D_U
  52.  
  53.      and then as
  54.  
  55.      _l_i_t_h_i_u_m._C_C_h_e_m._B_e_r_k_e_l_e_y._E_D_U.
  56.  
  57.      Lithium.CChem.EDU will not be tried, as there is only one component
  58.      remaining from the local domain.  The search path can be changed from the
  59.      default by the _r_e_s_o_l_v._c_o_n_f system-wide configuration file.  See the
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. hhhhoooossssttttnnnnaaaammmmeeee((((5555))))                                                        hhhhoooossssttttnnnnaaaammmmeeee((((5555))))
  71.  
  72.  
  73.  
  74.      descriptions of the sssseeeeaaaarrrrcccchhhh keyword in _r_e_s_o_l_v_e_r(4).
  75.  
  76. NNNNOOOOTTTTEEEE
  77.      Hostnames (and usernames) must be encoded in ASCII.
  78.  
  79. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  80.      named(1M), gethostbyname(3N), resolver(3N), hosts(4), resolver(4)
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.